﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1.Autenticado.Paciente
{
    public partial class Paciente : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["Paciente"] != null)
            {
                Entidades.FaceBookUser fu = (Entidades.FaceBookUser)Session["Paciente"];
                fotoImg.Src = fu.PictureUrl;
                NombreLiteral.Text = string.Format("<a>{0}</a>", fu.Name);
            }
            else
            {
                Response.Redirect("~/Default.aspx");
            }
        }
    }
}